﻿<%@ Page AutoEventWireup="true" CodeBehind="AlbumsEditor.aspx.cs" Inherits="Solution.CMS.AlbumsEditor" Language="C#" MasterPageFile="~/CMS/CMS.Master" Title="" validateRequest="false" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxEditors" Assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table style="border: 0">
        <tr>
            <td><dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Title" /></td>
            <td><dx:ASPxTextBox ID="txtTitle" runat="server" Width="350px"/></td>
        </tr>
        <tr>
            <td><dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Thumbnail (450x270)"/></td>
            <td>
                <dx:ASPxTextBox runat="server" ID="txtThumbnail" Width="350px"></dx:ASPxTextBox>
                <input type="button" value="Browse Server" onclick="BrowseServer('Images:/', 'MainContent_txtThumbnail_I');" />
                <div id="preview" style="display:none">
		            <strong>Selected Thumbnails</strong><br/>
		            <div id="thumbnails"></div>
	            </div>
            </td>
        </tr>
        <tr>
            <td><dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Intro"/></td>
            <td><dx:ASPxMemo ID="txtIntro" runat="server" Height="150px" Width="350px"></dx:ASPxMemo></td>
        </tr>
        <tr>
            <td><dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Parent"/></td>
            <td>
                <dx:ASPxComboBox ID="cboParent" runat="server" Width="350px" TextField="Title" ValueField="Id" ValueType="System.Int32">
                <Columns>
                    <dx:ListBoxColumn Caption="ID" FieldName="Id" Visible="False" />
                    <dx:ListBoxColumn Caption="Title" FieldName="Title" />
                </Columns>
                </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td><dx:ASPxButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /></td>
            <td><dx:ASPxButton ID="btnCancel" runat="server" Text="Cancel" PostBackUrl="/cms/album.aspx"/></td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FooterContent" runat="server">
</asp:Content>
